//
//  ViewController.swift
//  AnimotionKeyboard
//
//  Created by xxy on 16/6/2.
//  Copyright © 2016年 xxy. All rights reserved.
//

import UIKit
/// 测试键盘
class ViewController: UIViewController {

//发送
    @IBAction func sendBtn(sender: AnyObject) {
        print(textView.emoticonText)
    }
    
    
    @IBOutlet weak var textView: UITextView!
    private lazy var emotionView: EmotionView =  EmotionView {[weak self] (emoticon) in
        self?.textView.insertEmition(emoticon)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
       
        textView.inputView = emotionView
        textView.becomeFirstResponder()
     
    }

   
}

